package com.example.wenliangjiudian.mapper;

import com.example.wenliangjiudian.entity.Room;
import com.example.wenliangjiudian.pojo.RoomDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomMapper {

    List<Room> selectAll();
    
    List<RoomDO> listRoom();


    void updateStatus(@Param("roomNum") String roomNum, @Param("status") Integer status);

    void deleteRoom(@Param("roomNum")String roomNum);

    void addRoom(@Param("roomNum") String roomNum,@Param("roomType")Integer roomType,@Param("price")Integer price);

    void updateRoom(@Param("roomNum") String roomNum,@Param("roomType")Integer roomType,@Param("price")Integer price);

    Room getRoomByRoomNum(@Param("roomNum") String roomNum);
}
